var p= new  Promise(function (resolve,reject) {

    var b=5;
 var a= () => resolve(b);
    a();
})
p
    .then(function (a) {
    console.log(a)
    return 9999;
},function (err) {
    console.log(err)
})

